﻿@{
    Layout = null;
 
}
<div class="well">

    <h4>服务器参数</h4>


    <table class="table">
        <tbody>

            <tr>
                <td width="50%" style="height: 24px">&nbsp;<strong>服务器名</strong>：@System.Environment.MachineName
                </td>
                <td width="50%" style="height: 24px">&nbsp;<b>服务器端口：</b>@HttpContext.Current.Request.ServerVariables["Server_Port"].ToString()
                </td>
            </tr>
            <tr>
                <td width="50%" style="height: 23px">&nbsp;<b>脚本解释引擎：</b>@System.Environment.Version
                </td>
                <td width="50%" style="height: 23px">
                    <b>&nbsp;站点物理路径：</b>@HttpContext.Current.Request.PhysicalApplicationPath.ToString()
                </td>
            </tr>
            <tr>
                <td width="50%" style="height: 23px">&nbsp;<b>服务器CPU个数：</b>@System.Environment.ProcessorCount
                </td>
                <td width="50%" style="height: 23px">&nbsp;<b>服务器IIS版本：</b>@Request.ServerVariables["SERVER_SOFTWARE"]
                </td>
            </tr>
            <tr>
                <td width="50%" style="height: 24px">&nbsp;<b>开机运行时长</b>：@(System.Environment.TickCount / 3600000)
                    小时
                </td>
                <td width="50%" style="height: 24px">
                    <b>&nbsp;服务器时间：</b>@DateTime.Now.ToString()
                </td>
            </tr>
            <tr>
                <td colspan="2" style="height: 24px">&nbsp;<b>服务器操作系统：</b><span>
                    @System.Environment.OSVersion.ToString()</span>
                </td>
            </tr>

        </tbody>
    </table>
</div>


